<?php
use Jialeo\LaravelSchemaExtend\Schema;
// use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UpdateAuthUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('auth_admin', function (Blueprint $table) {
            $table->unsignedInteger('departmentid')->comment('部门ID')->default(0);
            $table->string('avatar')->default('')->default('')->comment('头像');
            $table->string('nickname', 50)->default('')->comment('昵称');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
